let cartStore = {
  namespaced: true,//开启命名空间
  state: {
    cartnum: 88,
    age: 73
  },
  mutations: {
    changeCart (state, num) {
      state.cartnum = num
    }
  },
  actions: {
    actNum ({ commit }, num) {
      commit("changeCart", num)
    }
  }
}
export default cartStore